package com.example.demotest.pojo.dto;

public class AddressDto {
    private Integer id;
    private Integer userId;
    private String consigneeName;
    private String consigneePhone;
    private String provinceName;
    private String cityName;
    private String regionName;
    private String detailAddress;
    private Boolean defaultFlag;

    // 构造方法
    public AddressDto() {}

    public AddressDto(Integer id, Integer userId, String consigneeName, String consigneePhone,
                      String provinceName, String cityName, String regionName, String detailAddress, Boolean defaultFlag) {
        this.id = id;
        this.userId = userId;
        this.consigneeName = consigneeName;
        this.consigneePhone = consigneePhone;
        this.provinceName = provinceName;
        this.cityName = cityName;
        this.regionName = regionName;
        this.detailAddress = detailAddress;
        this.defaultFlag = defaultFlag;
    }

    // Getter 和 Setter
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getConsigneeName() {
        return consigneeName;
    }

    public void setConsigneeName(String consigneeName) {
        this.consigneeName = consigneeName;
    }

    public String getConsigneePhone() {
        return consigneePhone;
    }

    public void setConsigneePhone(String consigneePhone) {
        this.consigneePhone = consigneePhone;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }

    public String getDetailAddress() {
        return detailAddress;
    }

    public void setDetailAddress(String detailAddress) {
        this.detailAddress = detailAddress;
    }

    public Boolean getDefaultFlag() {
        return defaultFlag;
    }

    public void setDefaultFlag(Boolean defaultFlag) {
        this.defaultFlag = defaultFlag;
    }

    @Override
    public String toString() {
        return "AddressDto{" +
                "id=" + id +
                ", userId=" + userId +
                ", consigneeName='" + consigneeName + '\'' +
                ", consigneePhone='" + consigneePhone + '\'' +
                ", provinceName='" + provinceName + '\'' +
                ", cityName='" + cityName + '\'' +
                ", regionName='" + regionName + '\'' +
                ", detailAddress='" + detailAddress + '\'' +
                ", defaultFlag=" + defaultFlag +
                '}';
    }
}
